package com.example.bilibili_miaosha.service;

import com.example.bilibili_miaosha.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.bilibili_miaosha.vo.LoginVo;
import com.example.bilibili_miaosha.vo.RespBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
* 弓川hello mybatisplus
 * @author gongchuan
 * @since 2022-03-27
 */
public interface IUserService extends IService<User> {
    public RespBean doLogin(LoginVo loginVo, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse);
    /**
    * @Description: 根据cookie获取user
    * @Param:  ticke代表的是token
    * @return:  user对象
    * @Author: 弓川
    * @Date: 2022/3/30
    **/
    User getUserByCookie(String ticket,HttpServletRequest request, HttpServletResponse response);

    User getByUserTicket(String ticket, HttpServletRequest request, HttpServletResponse response);
}
